The deal brings an end to the Farhad Moshiri era at Everton.