Refactor ocr_line_parser