[minor] Don't run these middleware layers for `upgrade` events