Rename max_gradient to lipschitz_constant.