Evolutionary trace of G protein-coupled receptors reveals clusters of residues that determine global and class-specific functions.