Remove unnecessary @preserve cleanup in flatten.