Conversion of agricultural buildings