Custom/Global Key Mappers

If the global and custom mapper are both set, custom mapper should override the global mapper. Therefore, the if clause should be removed.