Extract initialize_store method