Remove unnecessary middleware boilerplate