Using export(resource) seems kinda hacky. Is that how everyone is handling passing variables or is there a way to structure your project to avoid untyped passing of singletons?