Recep Tayyip Erdoğan, president of Turkey, and Viktor Orbán, prime minister of Hungary, are two leaders who have consolidated power using a similar playbook.