Refactor default command in carbon