Refactor qual score parsing and truncated record handling