The evolution of tyrosine-recombinase elements