Extract validation checker into validation class