It could technically be extracted out to some helper service, but for now, it'll do :)