Pennsylvania constitution
Article V: the judiciary
Section 12

(d) Except for officers completing their terms, after the first MOnday in January, 1970, no judicial function of the kind heretofore exercised by these officers, by majors and like officers in municipalities shall be exercised by any officer other than the one justice of the peace elected or appointed to serve in that magisterial district.