Clean ProjectMiddleware