Share parser code between ScreenParser and DisplayableParser.