Any chance you could put those three statements AND , OR, NOT as part of the actual builder, so add the filter, click EDIT icon and choose dropdown of the three options
Can you advise where the code pieces are that drive this function as i want to see how they can be customised