A 45-year-old vegan presents with fatigue, tingling in their hands and feet, and difficulty walking. Blood tests reveal macrocytic anemia and elevated homocysteine levels. Which of the following best explains the role of cobalt (Co³⁺) in vitamin B12 (cobalamin) function?