Move validator to avoid cyclic import

Signed-off-by: Michal Čihař <michal@cihar.com>
Avoid not needed import, reference model by name

Signed-off-by: Michal Čihař <michal@cihar.com>