Use local variable to lessen the impact of the deep_merge function