It's unnecessary to query the team table if the repository is not under organization when getting assignees.