Similar to [here](https://github.com/praekelt/vumi-go/pull/202/files#r4074020)