Last October I (finally!) stopped breastfeeding my youngest, he was 2 and a half.
When you are breastfeeding a 2 year old, so much of it is about love - not nutrition. And I think that is wonderful and a real gift to your child.
Whatever you do, I think it is important not to withdraw your love from him/her when you stop breastfeeding (for me the night feeding was always the last - my children stopped breastfeeding in the day very easily but the night feeding continued because it is such an easy way to settle them).
I think that you have very good reasons to stop breastfeeding your 2 year old, and you should not feel guilty or hesitant. I stopped breastfeeding my son last year because my mother insisted, and she rang me daily about it until I had actually stopped. After my mother nagging me for a few days, I made the decision to stop breastfeeding and I was resolute in this. I was resolute because I knew that my mother would ring and question me in the morning.
I think it is important to be resolute because if you change your mind it is so confusing for the child.
I did not announce to my son that he would no longer be breastfed. I think that to do that is a bit cruel and will cause a lot of upset, and is unnecessary.
Because my son was 2 and a half, I merely invented "sore nipples" - which you actually do have. (I did not have any pain).
I told him that my nipples (this is what we have taught the children to call their breasts) were sore and he had to not have a drink from them. I did not say that he would never drink from them again, but just that he had to not have a drink from my sore nipples.
He asked me why my nipples were sore and I said that I had bumped them.
So I explained the "sore nipples" to him just before his bed time. And instead of having a breastfeed, he actually kissed my arm and the skin under my neck and eventually fell asleep. I can't stand children crying when they go to sleep, so I stayed there and cuddled him until he was asleep.
He of course did wake up for a feed, and even came into bed with me, and I had ready a drink of water from a sippy cup and repeated that my "nipples were sore". Make sure that you are wearing clothes that cover you up.
I repeated that for a week or so, and then he never asked again.
I recommend the above for how to stop night feeding gently. It is a contrast to how I weaned my daughter - my middle child. With her, I stopped night feeding just before she was 2. I was heavily pregnant and we had just moved house. I did it without thinking - I became suddenly fed up, and told her that there would be no more waking me up for milk in the night. I remember marching her into the kitchen in the middle of the night and giving her some cows milk from the fridge, which she refused. And that was it.
She still woke up quite a bit in the night but (with hindsight) that was about toilet training, not breastfeeding.
Sorry this post is so long. I hope it helps.