Modularize the mappings with a dictionary