Partial refactoring autopackaging