The facility in Galloway will replace one which burned down in Ayrshire more than four years ago.