Prepare to rename.
Switch internal references.