restructuring repositories