Split Mapping into KeyMapping and ValueMapping traits.