In traditional mosques , there is often a building specially for washing . This is often in the center of the courtyard .
In traditional mosques , this function is often elaborated into a freestanding building in the center of a courtyard .