Extract Berkshelf & Librarian-Chef resolver code to classes.