The progenitors of extended emission gamma-ray bursts