Middlewares need to be classes, not modules (duh)