Remove TeacherProjectService.setMaxScoreForComponent() and implement it in GradingEditComponentMaxScoreComponent. No need to null-check the component, because we are editing the max score for a specific component at this stage.
Test
In CM > grade by team or step, set the max score for a component. It should save.
Changes
Test