Pruning and optimising items in $scope 2