deinstitutionalise

to prepare (a person) who has been living in an institution such as a prison, hospital, etc., for a normal life outside that institution.