DRYed part of a directive.