Tim Cook has set Apple's course at a pivotal time, and now he's walking away.