Refactored decorator helper to accept AstNode parameters
instead of the :node option.