Conserving species with different traits , such as being able to grow in waterlogged soil or at different altitudes , could help secure the future of the important crop -- but an estimated 70 per cent of wild coffees are in danger of extinction due to habitat loss and climate change , he said .