Instead of having a long list of `map` commands, define a dictionary for the mappings and take shortcuts were possible.