Factor out remapping-building logic in history
Factor out remapping-building logic in history

tzuhsiulin/prosemirror,salzhrani/prosemirror,ezeql/prosemirror,tzuhsiulin/prosemirror,salzhrani/prosemirror,jeremiak/prosemirror,kiejo/prosemirror,shaunstanislaus/prosemirror,jarrodh/prosemirror,jeffplourd/prosemirror,seanjensengrey/prosemirror,tzuhsiulin/prosemirror,tgecho/prosemirror,garbas/prosemirror,supriyantomaftuh/prosemirror,yakovenkodenis/prosemirror,tgecho/prosemirror,yakovenkodenis/prosemirror,adrianheine/prosemirror,ProseMirror/prosemirror-markdown,tecnogram888/prosemirror,martindale/prosemirror,kiejo/prosemirror,kiejo/prosemirror,bengler/prosemirror,jacwright/prosemirror,jarrodh/prosemirror,bengler/prosemirror,shaunstanislaus/prosemirror,jacwright/prosemirror,ligthyear/prosemirror,garbas/prosemirror,ligthyear/prosemirror,tecnogram888/prosemirror,martindale/prosemirror,Drooids/prosemirror,salzhrani/prosemirror,seanjensengrey/prosemirror,jeffplourd/prosemirror,mattberkowitz/prosemirror,adrianheine/prosemirror,supriyantomaftuh/prosemirror,ProseMirror/prosemirror-collab,adrianheine/prosemirror,Drooids/prosemirror,ezeql/prosemirror,mattberkowitz/prosemirror,jeremiak/prosemirror