Remove pointless middleware