[#87372] DRY up available accounts

This moves most of the #available_accounts logic into the OrderDetail model,
so both bulk account and one-at-a-time reassignment use the same logic to
determine what accounts to list for reassignment.

Closes #208