Since target_parser is responsible for deserializing target strings, the function that serializes them belongs in the same class.
Since target_parser is responsible for deserializing target strings, the function that serializes them belongs in the same class.