Moved the cross validation into a separate method