Refactors for modularity into config.js