Bin by metadata

Note: these methods have been renamed to `partition`, and the function passed in now accepts `id` and `metadata`