License Optimization from a Legal Perspective