syntax element parser refactoring