Extract some new helper methods out of the views