In more than a decade living in Stockholm never had a mentally ill homeless person bothering anyone in the subway.
Perhaps the subway itself isn't the problem...