Assemble the command registry so optional modules only load when their feature flag is enabled and the registry is accessed.