Some DRY stuff