Legal expert: This is how Abdul Mahdi resign