Converdered Injector to Factory