Convert lambda to function
Convert lambda to function


Former-commit-id: f94c807cb92ae1ffaa37d655a2d4beb37d96d15a [formerly dadebb843791b5eb3f75deb0a260d2f552cc6260]
Former-commit-id: 1a599580fe264ec43d9de610357ba02a525620eb
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine