Mechanisms of illegitimate recombination