refactor(licensify): extract to lib