As another idea, you could use passed flag to determine the desirable behavior instead of passing a callbacks.