Over the last few decades, African governments have removed restrictions on and privatised their mining industries, attracting significant foreign direct investment.