TemplateService: move a number of inline functions to top-level
TemplateService: move a number of inline functions to top-level

Makes _pkgShowPageValues easier to read

dart-lang/pub-dev,dart-lang/pub-dev,dart-lang/pub-dev,dart-lang/pub-dev