Replace `xor` helper with the existing but missing version.