Refactor validator static method
Hide shared object