Remove unnecessary flattening attempts.