DRY-ize types