Dynamically require files
Refactor