Be Persistent: Towards a Unified Solution for Mitigating Shortcuts in Deep Learning