Remove unnecessary class from the hierarchie