Condition Categorical Variable on Bernoulli Parents

Ah, Ok, I see… You are suggesting that I marginalize it out, right?