Simplify some boolean operations.

Just a little cleanup.