Simplifying index.js by extracting core/importer.js