The gearbox has a tongue which connects with a slot in the pinion retaining nut on the magneto.
You would need to replace the a/r unit nut with one of suitable length with a slot. I have a vague memory of such a nut being advertised, years back, by George Prew.
If such a nut is available then the usual a/r unit problem is that the centre nut will not screw out of the unit because the threads are damaged.