Refactoring.
A first implementation for "Copy Qualified Name"

Fixes #1001257