Remove classes and values not required