DOCS-251: legacy document migration