Moved create model functionality to factory. AH-140