fix a couple of deprecations
Merge pull request #139 from ministryofjustice/fix_deprecations

fix a couple of deprecations