Use add_routes facility to prevent rails/rails#11895 from happening