Remove a pair of unnecessary lambdas.