Formats routes.