Carbonate facies in geologic history