DRY up generators