Move relations to registry and rename relations=>environment
Extract proxy/decorator pattern into a module :bomb: