[Koha-bugs] [Bug 43221] Move recalls_per_record logic into shared and tested method