Code refactory : change the logic to different processors and use short circuit transport for LeaderHandler.