Factored out TrueFalseWrapper and simplified code.