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