Make createContinuation a bit more concise