Yea - but dismantling them was the wrong answer. It was the easy guiltless answer where everyone could pat themselves on the back, but mental health treatment is a service that society needs and trying to solve it with prisons is just a terrible idea.
The right answer was admitting and addressing those terrible abuses and fixing the system.