(MCO-84) deprecate and remove flattened output

This commit adds deprecation warnings when using the :flatten display
preference.