Document snap/allowMutations/flatten, reorg advanced