Removing unused fields in api call results for conditions