Refactored code so projects are not resources of groups.