Injected factory into controller