Hi Rob,
Just to add to what I said earlier, there is actually a way that you could make changes to the middleware from within the Dashboard without upgrading to version 2.3. This documentation should explain the process but let me know if you have any questions.
Kind regards,
Jess @ Tyk