remove unused code
Update check If user can assign project to team
Remove simple code duplication in members controllers
Merge pull request #2751 from Undev/feature/users_teams_core-21481

Simple code clean up