Is there a way to lift out just `resolvePath`? A shame this ties us to CustomElements/ElementRegistry.