Cleanup shading configuration and minimize.