Nursing baby to sleep

I have created a bad habit of nursing my baby to sleep. She rarely falls asleep any other way nap or bed time alike. Is anyone in a similar situation? What can I do to fix this? My baby is almost 4 months. Help 😩