Remove error checking and compatibility code before v2.0.0.

Closes #25.