DibiTree: Improved factory with automatic definition of parent node ids