Refactor and prepare for support for `elm-get install` command