The Pennsylvania Senate has voted in favor of a bill aimed at reforming the legislative redistricting process—but the proposal it approved also aims to split the state Supreme Court into seven districts.

The bill passed on a 35-14 margin on Wednesday, a day after it was amended to include language proposing to divide Pennsylvania’s three appellate courts into districts.