consul: use a function for ingesting responses