Using the get_icon_dir() function to make the code more concise.