Fixed issue where `require` was being called twice on routes.