How would you refactor a working piece of code to make it cleaner, more readable, or more idiomatic to your chosen language?