Fix code deduplication.