Extract clean subsystem and renumber subsystems