Further refactoring the oil library initialization.