[#6] Refactor static middleware to separate file.