Issue #77: Replace the class registry with a more robust alternative.