Remove unused Stock::Package#flattened

This was only used in a single test.

Fixes #4633