The TIM Barrel Architecture Facilitated the Early Evolution of Protein-Mediated Metabolism