Factored common code from CamelCasePhrase into AbstractParseState