Deduplicate resources