Maupertuis’s Principle of Least Action: Epistemology and Metaphysics