Collect license handling code, remove unused data attribute

This just shuffles code around, should not change behavior.

Change-Id: Ieb0102300c8444f18444fae38e5ea813d8f682e5
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/472
Merge "Collect license handling code, remove unused data attribute"