Add type annotations on get_storage.
The main goal of this commit is to add '-> StorageInterface', so all storage users automatically get type-checked.
But mypy was whining about the multiple imports, so this commit also deduplicates the import statements as a side-effect.
Migrated from D3640 (view on Phabricator)