Factor out build list extractor