Emotionally detaching myself from someone pregnant

Hi ladies,

I need to emotionally detach myself from my ex boyfriend of ten years we’ve been on and off for the last two years but he’s not good for me. He’s been horrible to me but the reason why I believe is time it’s because we are expecting a baby. I need to be able to emotionally detach myself from him in order to move on and have a healthy pregnancy and a healthy life. He is toxic for me and I am toxic for him. But at 26 an abortion is not an option for me since I’ve already had a few in the past. I just need some advice about how to emotionally detach myself from him because I really do love him but he doesn’t love me, he just uses me as a pastime someone to fool around with.

Please help.