Refactor hidraw device scanning