Using object instance in CommandControllerFactory instead of class