Split the event-processing methods in `FederationHandler` into a separate `FederationEventHandler`.