MDL-41559 mod_quiz: Moved groups events handlers to observers