Remove unused old-style error handling.

If needed, an ErrorOr should be used.