Fixed #22477 -- Removed contrib middleware from the global settings defaults.