Refactor read command: extract method