Remove old code and Log config