Refactor NLO-C.mt for UnitTest