Modularizes mappings.py and removes it