Review a shared input validation refactor