Operations management

A defect is found during a production-line check before the product is shipped, and the unit must be reworked. How should the rework cost be classified?