how do i get my 1 year old to stop nursing

idk how to get my 1 year old to stop nursing. he’s getting good about nursing during the day but he literally nurses ALL NIGHT LONG i can’t get him off me he uses me to sleep and stay asleep and i can’t stand it. i can’t sleep comfortably no matter what and i wake up in pain from sleeping weird. he sleeps in the same room as us usually starting in the crib but ending up in the bed at some point during the night because he doesn’t sleep all night long.