There's a fair amount of code duplication in the check_rename methods.
There's a fair amount of code duplication in the check_rename methods.