break up stash subcommand handlers into their own functions