[base] Fix E731
[base] Fix E731

Use functions instead of assigning lambdas. Apparently this improves
tracebacks when something goes wrong. TIL! http://stackoverflow.com/a/25010243/679254

facebook/codemod