Remove middleware that we no longer need.