refactoring: move storages detection to LocalStorage class