refactoring UidMapping because DontRepeatYourself