Remove global continuations in favour of a per-thread