removed Connection and moved getFactory into Validator class