Factorize a the manifest parser