Moving validation out of stubRepository in anticipation
of adding bulk add stub functionality during protocol creation.