Remove classes from configuration.