Extract history into a separate document.