Factorization by lattice homomorphisms