More DRY Ruby definitions.