Split bin/cli into multiple modules