Extracted lookup/resolve function into Registry