un-factor the behavior of the body writer middlware