A stack of thin_check refactorings