refactor common code of icons to utils/