Move license check out of the static initializer