QSV: minor refactoring.