ref #9890 use common state based deduplication helper in app-import