What event directly influenced the decision to relocate the Mormon Church headquarters from Illinois to Utah?

A) the murder of Hyrum and Joseph Smith

B) the annexation of Utah into the Union

C) the establishment of Brigham Young Academy

D) the Mexican-American War