[WIP] Factor dashboard helper methods.

Same thing, less lines.
Unused method argument - `prefix`. If it's necessary, use `_` or `_prefix` as an argument name to indicate that it won't be used.