Change adapter configuration handling

- Work with type and options definition instead of using key as type and
  value as options