Refactoring: rework intern_primitive() to reduce duplicated code.
Authored by: david_costanzo 2026-06-30
Parent: [r6313]
Child: [r6315]