Refactor printer repairing.