I didn't. It doesn't hurt anything for them to have it. If they are holding in their mouth all night with milk or juice dripping onto their teeth then you may have milk rot. That is where it comes from, dripping milk all night, or holding the bottle/cup in their mouth all the time.
If you want to stop this then you have to just take it away. Be prepared to not sleep again for at least a month though. She won't like it. She would normally give it up when she's ready to be done with it.
I let the kids do it until they were done with all that. My grandson stopped around 2-2 1/2 years old. His teeth were perfect at his last appointment. He did have some cavities in the area between a couple of teeth but that was fixed. He has not had any issues since. I have bad teeth, his M. has bad teeth, his dad has okay teeth so he is sort of inherited a probable tendency to have bad teeth. But they are perfect now and have been the last 3 dental appointments.