move name change logic into Repo