This is a bit nitpicking, as it probably doesn't affect performance, but I'd prefer to have all validations methods that does not depend on modelInstance outside of this function, so they are only called when dao-validator is first imported, not every time it is instantiated