If just the bearing is in need of replacement you do not need to remove the engine. Remove the socket head bolts and the stainless slug from the helmet. Flip the helmet, remove the worm clamps. Remove the shift linkage cover, 2 hex nuts & 2 socket head bolts. lift the gear housing up and turn it sideways then pull it off the shaft. There is a seal that is easy to pull out, a snap ring and with a slide hammer threaded into the shaft which will also remove the bearing.
Get a genuine Volvo AQ service manual.