Goal Factoring based on ngActiveResource