Great! I was searching something like this since last 2 hours.
I’m just so glad you posted such a useful solution.
Yes Matt, you can reshare with a backlink to this post.
i am new as a Magento developer. your post is absolutely great to learn and understand its awesome for the project issue.