Forget the XOR. Distribute out the C'D' so that you have SOP form. Then deal with the consensus terms.