It's a slippery ugly slope.Should all the components get balloons that match the function the parts provide, all the dimensions be layed out the same as they were? If a view has sections with it that the replacement doesn't have, should the replace function create those sections?
I just see that when this would work well enough to make it OK is so rare as to by useless.
The only reason this could possibly work here is the original approach to the simple problem of changing a file name was not to simply change the file name, but to do something else.
This is a great example of the XY Problem I posted about recently. Have problem X, try solution Y, solution Y fails, ask for help with Y. Fortunately, the original problem statement included a mention of X.