Encapsulate quiz flattening.