Simplify (and fix) BG_IterateConfidenceThresholds.