How to break the "nurse to sleep" habit!

Va

Help! I knew I should have broken the habit when he was younger but at that point I would have done anything to get him to sleep! Now my LO is 7 months old and still I have to breastfeed him to sleep for both naps and bedtime and I'm desperate to break the habit!

Any tips? Things that worked for you?

EDIT:: I should have mentioned this in my original post but I had been planning to nurse him to sleep until he stopped on his own. However in 3 months I will be leaving him with my mom overnight and am hoping to figure something out so it won't be too hard on him. He drinks breastmilk from a cup but does not take a bottle or pacifier so I'm looking for ideas on what will be the smoothest transition.