factor out primitive symbol loading