Refactor jenkins module