Factorization and scaling in hard diffraction