Clean up code to a folder not call checkConsistency recursively