How did you quit breastfeeding?

Ladies, could you please share your experience. I want to make it less painful for my child and me.

Did you take the pill or reduced amount of feedings?