Correct-N-Contrast: a Contrastive Approach for Improving Robustness to Spurious Correlations