user_class should be delegated to config.