Clone just the parts of the source document needed so as not to mutate the original
Removed apply_unsafe, changes to internals make it meaningless now