The only way I’d know to do it in vanilla is just taking part of the dirt with the worms still in it, heat it to the point the worms are ash but dirt doesn’t melt, add enough water to turn all the worm ash into dirty water, remove all the, heat the mud into mudstone and smash it into dirty again