small refactoring
refactored license detection to be using package-license