Refactor statement grouping out of _generate_id_maps.
Refactor statement grouping out of _generate_id_maps.

pvtodorov/indra,sorgerlab/indra,johnbachman/belpy,sorgerlab/indra,johnbachman/indra,sorgerlab/belpy,sorgerlab/indra,johnbachman/belpy,johnbachman/belpy,johnbachman/indra,pvtodorov/indra,pvtodorov/indra,sorgerlab/belpy,bgyori/indra,bgyori/indra,bgyori/indra,sorgerlab/belpy,pvtodorov/indra,johnbachman/indra