Remove unused dependency
Record custom error properties on the extra object