refs: refactor logic to look up storage backends