SCALARIZR-1292 *Refactoring change_service_status func.