Removes old code which is not in use.