Added StoreFactory to deal with the creation of stores