Use DI setter and getter.

Signed-off-by: crynobone <crynobone@gmail.com>