Remove deprecated and unused things.