Disable unneeded middleware