treat and rid individuals of the severe mental illness
It's not a mental illness. If anything, it's a mental disorder or just a sexual orientation. And when exactly have we ever been able to get rid of a sexual preference? Is conversion therapy your goal? That shit doesn't work.
You seem to be making a lot of wrong assumptions here. Because just like men in the rapists example, pedophiles overwhelmingly are fit for society and don't need treatment or rehabilitation in the first place. And for the ones that do feel like they need help, it would actually be better to not shame and stigmatize them to actually give them the chance of trusting someone to talk about it.