Consider moving this code to auto mapper.