Remove unnecessary `groupClicked` function