[server][DBClientConfig] Clean up by extracting commonly used lines as a method.