Refactor the `partial` helper to not rely on `bind`

cc @ebryn