Factorizing lists