Remove outdated internal docs and functions, clean up operator parsing.