Crystal structure of an ATP phosphoribosyltransferase