Extract parse_log_chunk into method