refactor(icons): refactor the helper function
refactor(icons): move the helper function to the main include