Deduplicate activity code.