Oops add the new file.
Reduce duplicate code in category views.