Actually, if you think about it, these things could be designed with chemo-attractants conjugated to nano-particles integrated into the nylon. The nylon nets could be arranged around small urathane rubber ballons. These ballons could be designed with gel around them for temporary lubrication to facilatate swallowing.
Mechanical removal of worms may prove to be more effective than medicinal hit and miss.
I suppose something like this could be tested on sheep first, to research the safety and effectiveness of the device. Shroom