Allow Middleware.enabled to override the mode