The snail produces the worms? How does that work?
Usually snails eat parasite eggs. The eggs hatch in the snail. Something eats or comes in contact with the snail and gets infected. Parasites have a pretty predicable lifecycle. It’s also difficult to stop in the wild.