Logic operator cleanup.