BS-9317: Open confirmation dialog when refactoring Document