Refactor all kred shell methods into kred_shell_helper