refactor hackney_multipart.

move the private functions at the bottom