Refactor to use registry

Modified to use registry changes from troopjs/troopjs-core#155