Remove useless components.