You can't "unwrite" someone off a song. if you were up front and honest with them and they agreed, you might take back what you put together, let it lapse and move on. But for most parts, someone feels more involved with a person than the other, welcome to the weird world of co-writing. Some times you have to just deal with it. You might bring someone else but can't get rid of them. I know of two number one songs that just this thing happened. Luck of the draw.

MAB