Reorganization of code structure in routes.