Remove private writer
Put the attribute validations in a module ValidationShared