Refactoring logic for disabling ExistsIn validation