Remove duplicate code for the joining-event component.