Changes Express middleware to only be included if used