Refactor Kitchen::Command::Console to remove duplication.