You've got it.In Spain, at least out in the Pamplona/Leon regions, where I have distant relatives the animals were in the area under the house for that very reason I suspect. I've not seen them but my Dad and uncle have. I've only been to Spain the one time 14 years ago for 2 weeks in Barcelona. I did meet up with my aunt's relatives, went to the church where she and my uncle were married in 1963 and the church where my grandmother and her mother were baptized in the 19th century.

Ground floor for the animals and kitchen if you had one. Middle floor for the humans and often an open balcony roof space for feed and storage.
A guy I know who keeps Fayoumies has a house just like this and the chickens roost in the top section.