Functions for extracting index metadata

Should those above be static functions?