Code deduplication