If the department revokes a mortgage license, the mortgage licensee shall divest itself of all outstanding loans that were issued under this chapter by selling or assigning them to another mortgage licensee. Divestment under this section must be approved by the department.