Remove some codes for discarded features