Remove classes that will not be necessary.