Inject a factory into controllers