Some housekeeping work for the routes file