refactor(ajax requester): remove code duplication