events: remove duplicate code emit removeListener