Minor refactor on Queue#each.