BUG-731: eliminate magic constants

We can use a boxed Boolean, whose hashCode() does precisely the same
thing. So let's keep magic down to a minimum.

Change-Id: Ie855a1508cc2c6b19d744dbdab04ed8794fdcd95
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 6e28af1a4355e0b364fd1b4ec201d35d794e1659)
Signed-off-by: Robert Varga <rovarga@cisco.com>