Coconversion of flanking sequences with homothallic switching