Use deep_dup on config before using it in deprecated_config