refactor(jenkins-client): reducing complexity in method updateConfig by applying single responsability principle