merge-recursive: introduce new functions to handle rename logic