Move side effect setup to main logic
Move side effect setup to main logic

@maxfliri
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	modified:   tests/write/test_flask_integration.py
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#	modified:   backdrop/write/api.py
#	modified:   features/write_api/write_api.feature
#	modified:   tests/write/test_flask_integration.py
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	backdrop/write/config/development_environment.py
#	backdrop/write/flaskext.py
#	tests/write/test_flaskext.py

alphagov/backdrop,alphagov/backdrop,alphagov/backdrop