Potentially use one less findProtection call
simplify expression to xor (simpler to understand)