It’s hard to answer this one without more context,...
# random
s
It’s hard to answer this one without more context, but I wonder if a simpler approach might be to just to extract the repeated logic into a separate method