Structural Dimension Reduction in Bayesian Networks