Refactored Model generation code to leverage AppPMMLUtils