Remove unused functions from utils.py