Refactor to take Bitcoin Core minor version into consideration, and use that to implement legacy version support.