Use SnakeYAML 1.9, remove some unnecessary code.