352e36a179
Motivation: We had some code duplication in ChunkedWriteHandler. Modifications: Factor out duplicated code into private methods and reuse it. Result: Less code duplication.