Simplify watchGroupFn assignment