How to stop your toddler from spitting

It’s been quite frustrating in this household with my toddler having learned the new trick of spitting! Which he’s been “practicing” around the house, when he’s angry, playful, upset, wants attention… You name it! The most interesting thing is, he knows when he wants to spit he’s only supposed to spit…