Move validation to the property initialiser.