Added componentFactory injection function