It can be invoked with a lambda without the ceremony of creating a class deriving from gms::feature::listener. The reutrned registration object controls listener's scope.