ice: Refactor promiscuous functions