Quality-Based Software Reuse