Move dotfiles logic out of actions