Extract config into dedicated class