Moved the AST Helper functions to their own module.