Refactors Webshot::CLI#capture complexity