Move the reanchoring logic from the DomTextMapper plugin to annotator core.