Spread classes from mapComponents.js to separate js files.