Add partial checks+error handling on rename refactoring.