Deprecate replace.  Introduce base_id to check unique.