Deduplicate code.