MX, if you're going to bust into the gearbox, proceed with due focus and take notes as you go, there's a good bit of goodies inside those things. And you will likely have to remove the entire unit to properly flush it inside because with swing gear box planetary units, any debris (metal wear) or fragments always drift to the bottom bearing of the unit, thanks to gravity. If you disassemble the unit with the lower housing still fitted to the machine, not likely you'll be able to properly clean out the very bottom of the unit.
If you remove the house covers on that side of the machine, I don't see an issue with you disassembling unit on machine as opposed to yanking it as a whole to keep from having to deal with the weight of an assembled unit. The first thing you would do would be remove hyd motor (not show in pic). Then you'll be left with the swing brake and planetary housing still in place. The swing brake would be the housing that the hyd motor is mounted on, it should have a hyd line going to it. Once you've removed the hyd motor, disconnect the hyd pipe going to the swing brake, remove the bolts that fit the swing brake to the upper planetary bearing carrier and remove swing brake unit.
Now you're down to the planetary unit. Before you disassemble that unit, you need to put some marks on the components for reassembly. Don't bother with a center punch to make marks because the planet gear ring is hardened steel and will knock the tip off a center punch. Instead, use a die grinder with a cut off wheel to grind some marks on outside of planetary housing components as noted with red lines in pic below. This will help you to orient parts when you go to reassemble.
Once you get these reference marks made, remove the 1/2" bolts that fasten the bearing carrier to top of planetary housing, remove bearing carrier. At this point, this is where I'd much prefer having the planetary unit removed from the machine. By now you'll see a good bit of parts inside there, and myself, I wouldn't hesitate removing those parts, but pay close attention to the location of the various components. Yet, even if I pulled the guts from that unit with it mounted on machine, you still cannot properly clean the very bottom of the unit where all the debris has settled. I would much rather remove those bolts that mount the planetary housing to the turntable base and yank it so I could rinse the housing with solvent and flip it upside down to remove debris.
Keep in mind, I'm only offering brief description of the process you're going to have to follow, you will find components that you will have to decide how to deal with them when you encounter them, hard for me to note a detailed description for disassemble and reassemble. And you will need some new o-rings to seal the parts that you have disassembled.