Whittaker to leave Doctor Who in 2022