Remove superfluous code and track backup origins.