Tidy up the statsd middleware