COLUMBIA, S.C. (AP) — South Carolina Republican legislative leaders want to toss a judge from a lawsuit over redistricting plans.

Attorneys for House Speaker Jay Lucas argue in papers filed Thursday that U.S. District Judge Richard Gergel can’t fairly consider the case in part because of similar prior legal work.

Gergel previously was lead counsel on a redistricting case following the 2000 Census and opposed redistricting plans passed by a Republican-controlled legislature.

Lucas’ attorneys say Gergel “took positions similar to those advanced by the Plaintiffs in this litigation.”

Gergel has been appointed to a three-judge panel mulling a lawsuit by two civil rights groups.

They accuse South Carolina’s newly drawn state House maps of discriminating against Black people by diluting their voting power.