Automatically remove and add an event so it only exists once for an element.