Detainees from an immigration detention centre near Perth have been moved into the maximum-security Casuarina Prison. File image.