When I was weaning my second one, I found that dropping one feed at a time very slowly (like one feed every one to two weeks) really helped prevent the clogged ducts, rather than cutting back too quickly. Since you've already had mastitis before, it might be worth checking in with your PD or even a lactation consultant, just to get a safe plan that works for both you and your little one.