[Olena-patches] r2250: Factor iterators on complexes.