Similarities between the stories about Sarah and the Pharaoh

How do you account for the similarities between the stories about Sarah and the Pharaoh (Gen. 12:14-20), Sarah and Abimelech (20:1-18), and Rebekah and Abimelech (26:6-11)?