Refactor ignored IP checks