Reorganize routes in config