Simplify whitelist logic.