Refactors a code snippet in README.