Moves trait MappedId before BaseId