GPII-245: updated kettle.getDynamicGrade utility based on @amb26's comments.