Remove unnecessary pages