Revert to previous way of passing idntity function to mouse handlers.