Stub instead of spy on console.warn for API deprecations.