#3 refactor existing validation utility in preparation for re-use by create ld validation