`team clear` refactor

Refactor condition for checking if user is admin.