Replace inheritance with composition in validator