Removing the Benelli M4 Bolt Handle Detent Spring Retaining Pin.
The key to making the task simple is to de-tension the spring from acting on the pin, very much like for the M4 bolt extractor roll pin removal (and Browning Hi-Power trigger pin). The second item is to have a tool to compress the spring away from the pin.
I fabricated a fork tool from 1/8” hex wrench, after observing my M4 trigger safety spring tool would fit in the hole and compress the detent spring; the problem was that tool was too long to fit in vise for compression of the spring. The hex wrench was slotted with a Dremel to 0.067”, shortened to fit a polymer tool handle. The tool can then be fitted in the vise to compress the spring freeing up your hands to remove the pin. I plan on milling a proper professional appearing tool in the near future.
The pin is removed inside-outward, once de-tensioned a simple small tool such as jewels screwdriver or 1/16” hex wrench can be lightly tapped with a light hammer to begin moving the pin which doesn’t take much force. A right angle pick with slight pressure will complete the pin removal and the pick captures the spring so it doesn’t fly about. Cover the spring hole, remove the pick and extract the detent and its spring.
Installation is the reverse. Compress the spring, insert right angle pick, use small pin holding punch to tap the pin in, displacing the pick. Make sure the inside of the pin does not impinge on bolt raceway.
When the spring is de-tensioned there is no need for dealing with breaking small diameter punches or rocketing springs.
A few photos of the tasking.