Remove indirection in grade_to_list class

- The helper class is no longer needed since llvm bug #11851 is fixed in
  r167514 of clang.
Fix warning reported by clang