CA-105974: Preserve genid for template import and cross-pool migration