Refactored:  created superclass for tables showing list of photos