acu99280 put back legacy shard find_and_flatten_setting implementation i...

...nside check for lagacy shard.

Put back legacy shard find_and_flatten_setting implementation inside check for lagacy shard.