refactoring remove_listeners! method