deploy_extra_log: Refactoring.