Refactored deleteGroup from the controller to the BLL class.