While this may seem daunting, the structures being inferred are actually beneficial to inference.
the unit-wise factors can examine compatibility of settings to the attribute variables for a particular node (for example, the set of topics may be too diverse to represent just a single entity), as well as enforce priors over the tree's breadth and depth.