Refactorized structure of StataReader