Deduplicate code in reifyIterableIterableTree