Maybe move this into `AliasActions` next to `AliasActions#writeTo()`?