Exactly. With their treatment of him (not that he didn't deserve it), the QC, and particularly Magneto and Xavier, have created in him a weapon to use against them, and Raven's just boss enough to pick that weapon up and fire it right at their faces.
And if she has to get a little Cortez on her in the process? Eh. She's had worse. It'll wash off.