Clean up error definitions