https://github.com/FinchFEC/FEC-Project/blob/07c299af8a2d9f59884ee44fb783e3c84f926504/src/client/components/widgets/related-products/relatedItem.jsx#L17 Can this logic be abstracted into a helper function in a way that cleans up the component, and possibly allows for re-use elsewhere?