Refactor the packaging so that subcommands can depend on the common functionality without getting the executable artifacts.