Reduces registration events mapped to the same key by inspecting their add/remove state in order to determine their final state. If an item has been added more than it has been removed, then it is added to the output. Otherwise, it is omitted.