require() refactoring