Eliminate unused class rules