Fix bug command_factory and configuration_spec.