Stacking Factorizing Partitioned Expressions in Hybrid Bayesian Network Models