A federal judge has dismissed the state of Michigan and Gov. Rick Snyder from a consolidated class action brought over water contamination in the city of Flint, while allowing some claims to go forward.

Wednesday’s order, by U.S. District Judge Judith Levy in Ann Arbor, Michigan, significantly pared down the lead case brought on behalf of Flint residents who suffered health problems and businesses that saw diminished property values after government officials switched the source of their drinking water. But she kept several former state officials and the city of Flint in the case.