extract leave type