I'd add a TODO: that we'll want to move this out into a file in the `ui/` directory.