Move get_icons out into a base class