Aversion is unwholesome, but can be noticed by sati without engendering more aversion. This is observation without judgment, or bare awareness. Thereupon right effort can come to the fore, applying metta or uppekha or other antidotes as appropriate. But the intention can never be right intention if it is rooted in aversion.
Using a thorn to extract a thorn may refer to using conceit to be rid of conceit, or using desire to be rid of desire. These are attested approaches, while using aversion to uproot aversion is definitively said to never work, in a number of places.