Refactor syntax analyzer with using Checker