Refactoring moving ValidationFactory to common package