[COOK-3055] Call library helper functions in the proper context

Signed-off-by: Seth Vargo <sethvargo@gmail.com>