Refactored status_icon helper