Refactored how middleware is configured - It's now easier to change the middleware load order and override configuration for specific middleware.