Refactor Oracle setup code.