See #22675 for motivation, this is one chunk of it. It extracts some BIP125 logic into policy/rbf:
- Defines a constant for specifying the maximum number of mempool entries we’d consider replacing by RBF
- Calls the available
SignalsOptInRBF
function instead of manually iterating through inputs - Moves the logic for getting the list of conflicting mempool entries to a helper function
- Also does a bit of preparation for future moves - moving declarations around, etc Also see #22677 for addressing the circular dependency.