Refactor and extract a get_available_slots utility
This adds coverage as well. This will be needed for subsidiary diffs.
Related to T3367