The genetic basis of novelty in the spiralia