Move the route metadata stuff to the Swagger package