I always found detaching easier than boundaries. I think to set boundaries in place you have to have a certain level of self respect. I found after living with an A for so long and accepting the unacceptable that my self respect was near nil.
So detaching first, for me, was a must.