Migrating from HTTP Handlers and Modules to Middleware