Remove unused requires from middleware.js