Why not just pass 'icon' directly in as a config parameter?