CLN: make _add_delegate_accessors generic