It's actually correct the first time, the middleware is shipped with pastedeploy.