GraphiteWriter: Refactor perfdata parsing.