Refactor and clean up lenskit-cli build