Two months to refactor something that already worked fine? The product owner must have been on vacation. That was a very expensive project that produced zero business value.
It produces little product value sure. However on the flip side the eng team basically spent two months of salary teaching this employee some incredibly important lessons around being pragmatic and crafting software that can be maintained by the team.