Remove some redundant information and regenerate