Explicitly copy the configurations instead of relying on a shallow copy.