Simplifying internal database registration code.