Make Draft a module.
Remove duplication of constants.
Separate detection and definition of drafts.
Avoid parsing the document on every mutation.
Avoid clearing every cache on mutation.
Improve performance adding curies.
Memoize CURIE expansions.