moving recent items code to crmUtil function to make it easier to implement for all dataClasses.