No need to duplicate the shared members of buttons for both branches.  Just

```python
buttons = [ ... ]
if not c.user.associated_wiki_account:
    buttons += [NamedButton('wikiaccount')]
else:
    buttons += [NavButton('wikiaccount', ...)]
```