More Ruby-like DRYing