On the factorization of a class of Wiener-Hopf kernels