factor out rabbit_farm_util