Remove bool_deprecated class.
Merge branch 'fix-issue-285'