Refactory XOrMore method to improve performance of the Join operator