Refactored code to remove projects being a sub resource of groups