Merge document utilities seem to be in disarray. Would be nice to update them and write some proper tests for them. [See here](https://github.com/savkov/bratutils/blob/master/src/bratutils/utils.py#L97)