Load filter by reference fields items to a repeater

Do you know if there is any other easier way to filter by reference fields? I’ve been struggling to find a solution for a while now. Been coding with Velo for 9 months now and I haven’t found any other solution except what you have showed here so I really appreciate it.