refactoring and licensing