Depending on the amount of tension that the spring is applying, it can be removed by driving it out under tension. The only problem that you run into is if the lower receiver is milled incorrectly, and the retention lip of the receiver, and the retention lip on the detent are out of spec. This will allow the detent pin to ride up too high, and make re-inserting the selector a real bitch.
Also, keep in mind that on some selectors, the detent ride groove can be a little more deeper than other, added to a sharp pointed detent pin, and you stand a good chance of cracking the receiver when you try to reinsert the selector by driving it back in (or scratching up a receiver if you are pressing down on the pin to re-insert and the tool slips.
Since the selector detent and spring is just retained by the pistol grip (single screw), I rather just remove the grip, then have to replace a receiver is something goes wrong, especially if I am wrenching on someone else’s rifle.
Food for thought.