Replace deprecated method in SyntaxHelper.

Closes #58.