I did exactly yhe same with one of my motors, when I got could not get the rear bearing out and only the outer bearing ring was stuck. Took me a while, because you only want to cut the bearing ring and damage not the motor bearing holder (cup).Cut the outer race with a Dremel carbide close to all the way through and pop it with a driver to relieve it..
Drill 2) 3mm holes opposite of each other right at the outer race and push it out with a punch and hammer...
Last week I replaced the bearings on the 4985, where I could not get the rear bearing out (which was still OK, but I replaced the stock ones with ceramic). Didn't want to try the bread trick since I wanted to try and keep the bearing as spare, so I drilled a hole in the motor end cap. A pin and a hammer and I could tap it out. Covered the hole with tape, ready to run