With his AK Party 's thumping parliamentary majority , Erdogan had a chance to integrate his country into the EU and reform the Constitution in a way that would create a real democracy--for instance , by overhauling the Constitution to protect elected parties and officials from interference from politicized prosecutors .