Cleaned up the route definitions.