Remove unnecessary classes generated for terms/codes.