factorize output generators