Factor dashboard helper methods.

Same thing, less lines.