Define 'single shuffle' and refactor to use it in various places.