Reference model in factory by string rather than import