caste-based discrimination is rooted in Hindu scripture
is a well known and well debated subject. Read The Annihilation of Caste - Dr. B. R. Ambedkar
Dr. B. R. Ambedkar says
The literature of the Hindus is full of caste genealogies in which an attempt is made to give a noble origin to one caste and an ignoble origin to other castes. The Sahyadrikhand is a notorious instance of this class of literature.
There is no code of laws more infamous regarding social rights than the Laws of Manu. Any instance from anywhere of social injustice must pale before it.
But whether the doing of the deed takes time or whether it can be done quickly, you must not forget that if you wish to bring about & breach in the system then you have got to apply the dynamite to the Vedas and the Shastras, which deny any part to reason, to Vedas and Shastras, which deny any part to morality. You must destroy the Religion of the Shrutis and the Smritis. Nothing else will avail. This is my considered view of the matter.