Remove dead functor that has been replaced by a lambda expression.