Move Chef::Log.warn in monkeypatch of Chef::Node::<=> to outer scope.