Oh, and there are examples in the code already of using objects that way, e.g. RewardAuthChecker