/**
  * Remove a user from the specified role in a class in Turnitin
  *
  * @param int $membershipid id that links user to the class
  * @param string $role the user has in the class
  * @return string $notice to display to user whether mehtod has been successful or failed
  */
 public function remove_tii_user_by_role($membershipid, $role = "Learner")
 {
     if (turnitintooltwo_user::remove_user_from_class($membershipid)) {
         $notice = $role == "Learner" ? get_string('studentremoved', 'turnitintooltwo') : get_string('tutorremoved', 'turnitintooltwo');
     } else {
         $notice = $role == "Learner" ? get_string('studentremovingerror', 'turnitintooltwo') : get_string('tutorremovingerror', 'turnitintooltwo');
     }
     return $notice;
 }