Document migration API improvements.