I used to do it that way until I pulled hard enough for the little tab that keeps the pistonin the bore and out it came and brake fluid all overmy nice paint. I disconnec the rod from the pedal and take it out on the bench now! :)
If the rubber o-ring is dry it will stick, spray a little lube like WD-40 in there and it will come apart easier.