Remove old deprecated middleware