Remove middleware redirect and newrelic.