Factory for the leave-one-cohort-out (LOCO) fitness used by optimize_panel() when fitness_mode = "loco". Split out to keep the main orchestration function readable.