Restructuring repositories for multi-platform