I'm not sure why the down votes, I'm not being glib.
Go read the work of historians who study this. The transitions in Russia, Hungary, etc are well documented. There is a pretty solid consensus understanding of the dynamics, the typical playbook, etc.