Move mapper to class.