The mining industry is cyclical, but great companies are built by those who can navigate the downturns as well as the booms.