You're passing factory to method, but don't use it.