No need to pass in warningTerms, it never changes and is available in the upper scope.