[server][DBClientConfig] Clean up by using a common helper function.