(PUP-2412) Remove 1.8.7 function api support
(PUP-2412) Optimize min_max_param to one map iteration