How do I stop breastfeeding?

My son just turned 1

Formula & breastfeeding here and there, mostly night

I’m giving birth in 6 months but I want to stop breastfeeding before baby is born… help please!