public function remove_section_heading($sectionid) {
        global $DB;
        $section = $DB->get_record('quiz_sections', array('id' => $sectionid), '*', MUST_EXIST);
        if ($section->firstslot == 1) {
            throw new \coding_exception('Cannot remove the first section in a quiz.');
        }
        $DB->delete_records('quiz_sections', array('id' => $sectionid));
    }