Refactor how RaftLog is created and initialized