Thanks @Hartecode, this definitely works. However, it would so much better if we could do this within the lifecycles someway.
I’ve tried the other solution provided by @taka but that just throws an internal error message in the Admin. Maybe I’m doing something wrong.