Code deduplication for performance check