Linear model cleanup.