MDL-48168 quiz editing: max grade should be editable after attempts

Note that there was a lot of legacy code left from Moodle 2.7 which is
no longer required, and I took this opportunity to delete it.