Remove vestigial folding code