Extract logical operators in base class JoinPointSelectorBuilderBase.