split collecting setting before using them, so the function can be reused when inserting WSGI middlewares
Author:
Christophe de Vienne
Copyright:
© 2014 Unlish
This package is distributed under the terms of the GNU Lesser General Public
License, version 2.1. On Debian systems, the complete text of the GNU Lesser
General Public License may be found in '/usr/share/common-licenses/LGPL-2.1'.