Refactor Decimal converter.