Replaces a current binary boolean expression with an equivalent negated one.