Save 6 bytes in the internal function `flatten`

Just a minor 6 bytes.