HomeSoftware Heritage

Refactor and extract a get_available_slots utility