Bit terser version of parse_parts func