title: Recreate object in kotlin
body: <p>I have simple issue: need recreate a object with other parameters.
  Have this object: </p>
  
  <pre><code>object NetworkClient {
      var BASE_URL = "http://google.ru" //we can take this from another class or Pref's
      const val API_BASE_URL = "$BASE_URL/api/"
  
      val httpClient = OkHttpClient.Builder()
      val client: Client
      var retrofit: Retrofit
  
      init {    
          val builder = Retrofit.Builder()
                  .baseUrl(API_BASE_URL)
                  .addConverterFactory(GsonConverterFactory.create())
  
          retrofit = builder.client(httpClient.build()).build()
          client = retrofit.create&lt;PapaJobsClient&gt;(Client::class.java)
      }
  }
  </code></pre>
  
  <p>In rare cases you need to change the BASE_URL on the fly to another String and recreate client and etc. I know how to make it, but my resolution so hard - need rework all places where i use this class but i want create this object with concrete parameter. How you think about this problem?</p>