these two look almost identical maybe just define incomingInfo once and add the differences in the if statement (looks like just blacklistedCapabilities) ?