I think since this has nothing to do with the database this should go into the business layer