[tor-commits] [metrics-lib/release] Simplify and avoid repetition in parse helper methods.