Rationalized purge-* and nopurge-* classes in grading infrastructure