Factor out section identifier parsing