Refactor Slim\Http\Response