trim modelFactory