Extract client as class
config