This function is only used in one other module so we should just move it there. Same goes for scopeContainsAwait.