Conditional form elements in a DRYish way