Extracted duplicate code into `CompleteCurrentToken` function