[impressions import] Refactor to separate processing from iterating