DOCS-3214: backport of changes to movePrimary