Minimize shaded classes as far as possible