Delegate success/failure to the right method.

def delegate(self, success, **kwargs):
        """Delegate success/failure to the right method."""
        if success:
            self.succeeded(**kwargs)
        else:
            self.failed(**kwargs)