[Gardening] More idiomatic host function

Signed-off-by: chatgris <jboyer@af83.com>
[Gardening] Fix deprecation notice

Signed-off-by: chatgris <jboyer@af83.com>