A gold mine is not a hole with gold in it. It is a spreadsheet with a hole attached — and the single number that decides which rock is ore and which rock is waste moves every time the price does.
A significant share of the world's gold is produced by people working with hand tools, informal finance and a neurotoxin. Formalisation is the stated solution. Nobody agrees on what it costs.