You can do it in a multitude of ways. The French for instance elect their president by voting twice, the first time they vote for their favorite candidate (and the parliament), the second time they vote for either of the two candidates that got the most votes (a run off)
There are other ways, like ranked voting, or you could look up parliamentary republics for an alternative form of government.
Read up on what happens in the rest of the world, at this point, we, as a human species, have tried pretty much everything
EoL of anything should mean open source code. You don’t want to open source your code? Then you must keep servicing your products and must keep your servers up