Fixes #12009 This is a simple change similar to #10911 where we need to exclude providers that aren't targeted.