DRY:
Same wording is used for add_branch().
Maybe turn it into a docu reference to some common concept documentation.
Maybe the CleanupMode docustringdocstring should bear responsibility
for documenting this concept.
nit: "new isntance" typo in the add_branch() docstring, and apparently CTRL-V pasted at several other places.