Remove unused functions from utils/data_specs