The critical factorization theorem