refactor(raft): organizing things