Introducing a leader target encapsulation allows us to
enfore state transitions (i.e. state is guaranteed to be
non-null when we need its bits).
This enables us to eliminate the need for a magic constant.
Change-Id: Iab7178694edc3c62032e32c4386c371630f67b6f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
2c42c1d35a45fb7eced5a3ffd07b52bdc26f7e40)