Reduce repetition in spec definitions