The refinery will begin the transition to an import terminal next year.