Deduplicating killing code