Fix code smells in yang-parser-spi