@caridy That's the approach Mojito took for all its built-in middleware.

This specific implementation is to provide a level of BC for all other middleware that relies on the internal store, logger, etc. If not, that will require all of them to be updated.

In addition, we can document that going forward, the recommended way is to do as you suggested, and that this is mark a deprecated feature and will be removed in the future. /cc @zhouyaoji