DRYing up Ruby code with Scopes