Work on deactivate from https://github.com/guardian/scribe/pull/221
Add deactivate function