Avoid using magic getter.

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