Replace command_spec and help_spec string constants with namedtuples.