internal phrase-parsing cleanup