Cleaning up a lambda