and can this be refactored even more? Is this the only place where we need to distill projects from ids? If so, can we move this code out of this controller to make it re-usable for other controllers?!