Remove middleware classes which are currently unnecessary