Remove class references that do not exists in styles