code: private void removeInactiveScopeOwnerByTeamId(String teamId) {
  		if (!StringUtils.isEmpty(teamId)
  				&& teamRepo.findByTeamId(teamId) != null) {
  			ObjectId inactiveTeamId = teamRepo.findByTeamId(teamId).getId();
  			if (inactiveTeamId != null) {
  				teamRepo.delete(inactiveTeamId);
  			}
  		}
  	}
docs: Removes scope-owners (teams) from the collection which have went to an
  non-active state
  
  @param teamId
  A given Team ID that went inactive and should be removed from
  the data collection