Divide up cli_executable into subroutines.