Convert hierarchical models