Here is an extremely harsh critique of that perspective, from an upper-caste scholar of Indian history
https://thewire.in/caste/caste-history-postcolonial-studies