extract to a utility class. this has potential value for non-numeric serializer classes