Article 50 of the Treaty on European Union (TEU) sets out the process for a member state to withdraw from the EU.