[Olena-patches] oln 10.189: Change functions to functors