Simplify JSON serializers by introducing a RoutesHelper helper class