points-grep: minor refactoring