acu99280 put back legacy shard find_and_flatten_setting implementation inside check for lagacy shard.