fixes #5105 - remove Setting['remove_classes_not_in_environment']