Moved kubectl global flags setup to separate method