Unnecessary lambda expressions removed.

Lambda expressions removed in places in which there is a way to
specify required function directly.