[#62123370] refactor api_where to a new class