Courts trump legislatures ... just ask the courts, they’ll say it’s so.
Courts have given themselves quite a bit of authority over the years. Not sure how much of this has been challenged. I doubt any. Kind of like judges giving themselves judicial immunity. Not sure if that’s such a thing.
But, when an issue is ignored, it’ll become a problem down the road. The legislatures have become too obedient to the courts and when you have a rigged system like they do in Pennsylvania, you need to take drastic measures.