[WIP] Remove license based on token information

 - [x] Correct license removal logic
 - [x] Remove license text
 - [ ] Ensure license removal also removes new lines