Factor out parsing and allocation of IdentifierLoc objects.