Concepts and Technical Steps for Program Restructuring