Factorizing operators on Banach function spaces through spaces of multiplication operators