Some cleanups to folly::EventBase after converting to folly::Function