move license key setting from repo to state