Reorganising libraries in Mantid style.