Move to license enum.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>