Remove deprecated code from hive.py