Inspired by the solution in https://github.com/getsentry/repro/pull/10 . But let's do it gradually.