So, forgive me if this is premature, but I would DRY this with a build_registry method and use instance_variable_get/set.