refactoring: move a generic method in the OSHelper base trait
refactor: remove useless imports