(refactor) Get rid of unnecessary 'static bounds and modularize ErrorPrivate.