Passage: Craig achieved international fame when chosen as the sixth actor to play Ian Fleming's British secret agent James Bond in the eponymous film series, taking over from Pierce Brosnan in 2005. His debut film as Bond, Casino Royale, was released internationally in November 2006 and was highly acclaimed, earning him a BAFTA nomination and becoming the highest grossing in the series at the time. Quantum of Solace followed in 2008. His third Bond film, Skyfall, premiered in 2012 and is currently the highest-grossing film in the series and the 22nd-highest-grossing film of all time; it was also the highest-grossing film in the United Kingdom until 2015. Craig's fourth Bond film, Spectre, premiered in 2015. He also made a guest appearance as Bond in the opening ceremony of the London 2012 Olympic Games, alongside Queen Elizabeth II. His fifth Bond film, provisionally known as Bond 25, is scheduled for release in 2020.Since taking the role of Bond, Craig has continued to star in other films, including the fantasy film The Golden Compass (2007), World War II film Defiance (2008), science fiction western Cowboys & Aliens (2011), the English-language adaptation of Stieg Larsson's mystery thriller The Girl with the Dragon Tattoo (2011), and the heist film Logan Lucky (2017).

Question: What actor was relieved from the role of James Bond in order for Craig to be cast in the role?
Pierce Brosnan