I'm not an expert here, but I guess you have these choices: Move the hives a long distance to a place without these ants nearby. Or; change the hive stand, so you can put the legs in oil cans.
A third possible solution is to find all ant hives within 100 meters, and use ant poison to kill the ants. I bought some poison, but freaked out of the warnings on the label as the hives are near drinking water. I went for the oil cans instead and it worked using corn oil.
A problem with oil cans is that if they get filled with water, the oil gets out, and if you get warm dry weather after this, the can can get empty. Here
is a picture of a oil can that has a tube to let the water (and not the oil) out if it rains heavily. It is also crucial that no grass, twigs, leafs or such creates a bridge for the ants if you use oil cans.