Inferring Ancient Metabolisms