Clean up parser code.