Replace validiation lines with the equivalent function in the base class.