Delete older than a week activity logs to keep things clean.  Minor refactoring.