DRYed up rename action