Moved the controller's private methods to Module.