It's frustrating that we cannot share this code with SearchRequestBuiler.