Refactor yandex api using.