Group require() lines to internals and externals
Simplify