It's an arduous task Tim Cook didn't have to deal with.