Refactoring towards using Observable pattern for parser