BACKLOG-4649: initial implementation of rename. Needs testing.