Refactoring influxdb datasource, split out response handling