> I get the feeling this review has already generated more discussion than you were hoping for, so I am happy for this code to land unmodified.

Well... :) Okay. Opened  #543 as reminder for what in general needs to be done, please add  your ideas to that. For the `createDocument` I will do a clean-up PR next, which makes things more sane (at least from my POV).

So taking "I am happy for this code to land unmodified" as "merge it"? Thanks for the review and discussion so far.