Factored out _get_flattener

--HG--
extra : rebase_source : f97be8ab2137de3216baa98d298a1cdea59ef128
Fixed typos in 'unpicklable' attribute
Merge pull request #40 from jaraco/extract-get-flattener

Factored out _get_flattener