Move listener method handler inside listener interface body