Refactor fetchMeta