collapse conditions that have boolean literals