Automated Bayesian network exploration for nuisance-robust inference