I don't get all the hate for vermetids. I have tons of them. They are just part of the fauna that grow naturally in our tanks. They don't bother my corals. Don't really bother anything. I like them because they collect particulates in the water column and keep the water clean.
If you really want to get rid of them, then you need to reduce the amount of particulates in the water column. That means feed less more often. Reduce broadcast feeding and just target feed. Run a filter sock. Just realize that other flora/fauna; sponges, bivalves, pods, etc, feed on those particulates as well.
These worms are just one part of a larger ecosystem, and taking steps to destroy them will inevitably impact the rest of the system.