Remove hardcoded middlewares from stack.