Deduplicate shared space code