Refactored Route class into Controller class inside a module.