Refactor view's color functions into a helper.