Make createContinuation more concise