feat(registry): move the registry stuff into a package