#449 Refectored update config methods

Please, review.
There is no need to store the object in variable if it is used only once.