Fix polymorphic relationships for MODEL_FACTORY_INJECTIONS