Try this, Get one socket big enough for the bearing to go into on one side. put a long bolt through the whole lot, you may need a washer or two in the right place. as you tighten a nut onto the bolt it should pull the bearing out. It's better than hammering. Also try heating the whole thing with a blowtorch (not too much!) then Quench with WD40 to break the hold the corrosion has if it's corroded in.