Deepcopy defaults to prevent weird references in yaml.