Avoid to define helper method on top-level context

refs: https://github.com/fastladder/fastladder/pull/48#discussion_r3403790