refactor lcs packages