Dominic Calvert-Lewin is to leave Everton when his contract expires.