Merge "Move deduceRestrictedCapability to libs/net and rename it"