The history of the subject, and Palatini's connection with it, are not straightforward (see references). In fact, it seems that what the textbooks now call " Palatini formalism " was actually invented in 1925 by Einstein, and as the years passed, people tended to mix up the Palatini identity and the Palatini formalism.