Generalized branching model builder