First of all you need a torque wrench as you need to measure the current nut tension. There's another method requires marking the nut in relation to the pinion shaft. This mark needs to be accurate as the nut needs to be refitted in the exact place from whence it came. Once you have a mark or torque wrench ready to measure the tension, you need to make up a locking tool to stop the flange from turning. For this you'll need 2 flat steel bars with the dimensions of 1/4" thick X 1" wide and about 18" long. You need to drill a 10mm hole in each end, central in the width and about half inch from the ends. Next bolt the 2 bars together at one end with a 10mm bolt. Form the bars into a shallow v and bolt the remaining 2 holes into 2 opposite flange holes. This can then anchor the flange if you allow it to turn against something solid so the nut can be removed.