MDL-46827 core_grades: Allow reset of weights on categories