clearing out factories on app reload