Refactored EntityDefinitionAttribute.save()