Move time interval logic to LeapHandler.