Deduplicating code