Simplify error declarations