> legislation or a judge
Sure, if the judges can use their power of personal persuasion to convince the dispersed population of anonymous miners/stakers that they should adopt the contract modification (as ethereum community leaders did during the DAOsaster) they will be able to enact changes.