You have a pretty good shot at guessing this, because the earthworm has very little going on at the posterior end except the anus. And you probably saw this in lab, too.
I've attached a picture of the earthworm anatomy. Worms can't smell in the strictest sense, but they can use their receptors as kind of a combo smell-taste thing, and those are located in the anterior end.
Doesn’t matter if it takes hundreds of years or a couple weeks, if there is an intent to alter the genes of an organism to select for desired traits, it is genetic engineering.