Pregnant but still breastfeeding

So on Monday my husband and I found out we're expecting again. My daughter is 17 months and still breastfeeding. I have been wanting to get her off the boob since she was about 1 year. She also still co-sleeps, also a habit we want to break. Now that we found out we have another baby coming I want to stop her breastfeeding and co-sleeping as soon as I can. We're already down to her only nursing when she's tired. Any ideas on how to get all of this accomplished?