Simplify $resource in service file