This function is too long with a twisted logic, can we move group logic out ?

```js
construct(item.group).then(function(group) {
  item.group = group;
  deferred.resolve(item);
})
```