Making this Blueprint "DRY"?

Hello,
How would you go about making this blueprint more DRY?
I have used a Macro to clean it up a bit but not that clean.
I’ve got to do this 4 more times. I’ve tried using a function that has an array but no luck.

It’s basically an inventory UMG where the user clicks on a square1, sends the clicked square1 to an empty slot. If the user clicks on the sent square1 it sends the square1 back to it’s original position.

You could have a function which takes an integer input for the From Item you are using as individual booleans.
Then, have an array of buttons (you could set the type as boolean). Use a For Each loop to set each array element to false, then only set the index of the inputted integer as true.