Extracting factory for numeric data to allow reuse.