extract_data function

Internal function to create a familiarData object.