These IDs shouldn't be necessary, it seems that they were only introduced to handle the one edge case in which an unnamed ref is reused, and then given a name after the page is saved. Instead, we would like to break this behavior into several pieces:
- A new property such as originalNamewould make it possible to answer the question "was this a named ref in the last saved version of the document?", which is currently answered by matching "auto/" against the opaque, internal ID.
- When an unnamed ref is reused, we would like to give it a name immediately.
- The internal ID should be removed entirely.