Moved more helper functions into dedicated module.

Added functions for getting the operators and methods from the module.
Updated examples to use the new function signatures.